﻿using System.Windows.Controls;

namespace HOG.Controls
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
            //IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication();
            //Int64 sizeNeeded = 1024 * 1024 * 100;//100MB
            //if (isf.AvailableFreeSpace < sizeNeeded)
            //{
            //    Int64 newValue = isf.Quota - isf.AvailableFreeSpace + sizeNeeded;
            //    if (isf.IncreaseQuotaTo(newValue))            
            //        InitGame();                
            //}
            //else
            InitGame();
        }
        public void InitGame()
        {
            FrameControl control = new FrameControl();
            control.Name = "FrameControl";
            this.Content = control;
        }
    }
}
